package com.example.gateway.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhouyp
 * @program gateway
 * @description
 * @create 2020-07-26
 */
@FeignClient(value = "example-service-user", path = "/api/user")
public interface UserRepository {
	@GetMapping("/infoWithToken/{token}")
	String infoWithToken(@PathVariable("token") String token);
}
